package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName Catelog2Vo
 * @Description TODO
 * @Detail 2级分类Vo
 * @Author MyPC
 * @Date 2020/7/6
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catelog2Vo {
    //1级分类id ，即二级分类的父id
    private String catalog1Id;
    //2级分类对应的三级分类数组
    private List<Catelog3Vo> catalog3List;
    //二级分类id
    private String id;
    //2级分类名称
    private String name;

    //三级分类Vo
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Catelog3Vo{
        //二级分类id，即三级分类的父id
        private String catalog2Id;
        private String id;
        private String name;
    }
}


